package utils;

import interfaces.Facade;

import java.util.Hashtable;

import javax.naming.InitialContext;
import javax.naming.NamingException;

public abstract class NamingUtil {
	public static InitialContext getInitialContext() throws NamingException{
    	Hashtable propertys = new Hashtable();
    	propertys.put(InitialContext.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
    	propertys.put(InitialContext.PROVIDER_URL,"jnp://127.0.0.1:1099");	
		return new InitialContext(propertys);
	}
}
